package com.cskaoyan.object01.syntax.keystatic;


public class Demo1Introduction {

    public static void main(String[] args) {

        // 第一个学生对象
        Student zs = new Student("zs", 18, 1);
        zs.schoolName = "王道训练营";

        System.out.println(zs.name + "--" + zs.age + "--" + zs.studentId + "--" + zs.schoolName);

        // 第二个学生对象
        Student lisi = new Student("lisi", 19, 2);
        lisi.schoolName = "王道码农训练营";
        System.out.println(lisi.name + "--" + lisi.age + "--" + lisi.studentId + "--" + lisi.schoolName);

        // 比较
        System.out.println(zs.schoolName);
        System.out.println(lisi.schoolName);

    }
}
